package com.dianban.entity;

import java.math.BigDecimal;

/**
 * 订单
 */
public class ShoproOrder {

    public static final Long goodsId_500=143L;
    public static final Long goodsId_5000=144L;
    private Long id;
    private Long userId;
    private BigDecimal totalAmount;
    private Long paytime;
    private Long deletetime;
    private String offlineVerify;
    private Integer canVerifyCount;
    private Integer hasVerifyCount;
    private Integer takenewVerifyCount;
    private Integer takenewHasVerifyCount;
    // 把ShoproOrderItem的字段移到这里来直接用这个对象了
 //   private Long goodsId;
    private Long storeId; // 门店ID

    /**
     * CREATE TABLE `jw_shopro_order` (
     *   `id` int(11) NOT NULL AUTO_INCREMENT,
     *   `type` enum('goods','score') NOT NULL DEFAULT 'goods' COMMENT '订单类型:goods=商城订单,score=积分商城订单',
     *   `order_sn` varchar(60) NOT NULL COMMENT '订单号',
     *   `user_id` int(11) DEFAULT '0' COMMENT '用户',
     *   `activity_type` varchar(255) DEFAULT NULL COMMENT '活动类型',
     *   `goods_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品总价',
     *   `dispatch_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '总运费',
     *   `phone` varchar(20) DEFAULT NULL COMMENT '联系电话',
     *   `consignee` varchar(20) DEFAULT NULL COMMENT '收货人',
     *   `province_name` varchar(20) DEFAULT NULL COMMENT '省',
     *   `city_name` varchar(20) DEFAULT NULL COMMENT '市',
     *   `area_name` varchar(20) DEFAULT NULL COMMENT '区',
     *   `address` varchar(255) DEFAULT NULL COMMENT '详细地址',
     *   `province_id` int(11) NOT NULL DEFAULT '0',
     *   `city_id` int(11) NOT NULL DEFAULT '0',
     *   `area_id` int(11) NOT NULL DEFAULT '0',
     *   `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '订单状态:-2=交易关闭,-1=已取消,0=未支付,1=已支付,2=已完成',
     *   `memo` varchar(255) DEFAULT NULL COMMENT '商户备注',
     *   `remark` varchar(255) DEFAULT NULL COMMENT '用户备注',
     *   `total_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单总金额',
     *   `score_amount` int(11) NOT NULL DEFAULT '0' COMMENT '积分总数',
     *   `total_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '支付金额',
     *   `discount_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '折扣总金额',
     *   `coupon_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠券抵用金额',
     *   `pay_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '实际支付金额',
     *   `score_fee` int(11) NOT NULL DEFAULT '0' COMMENT '积分支付数',
     *   `goods_original_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品原价',
     *   `coupons_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券 id',
     *   `transaction_id` varchar(60) DEFAULT NULL COMMENT '交易单号',
     *   `payment_json` varchar(2500) DEFAULT NULL COMMENT '交易原始数据',
     *   `pay_type` enum('wechat','alipay','wallet','score','coupon') DEFAULT NULL COMMENT '支付方式:wechat=微信支付,alipay=支付宝,wallet=钱包支付,score=积分支付,购物券支付',
     *   `paytime` int(11) DEFAULT NULL COMMENT '支付时间',
     *   `ext` varchar(255) DEFAULT NULL COMMENT '附加字段',
     *   `platform` enum('H5','App','wxOfficialAccount','wxMiniProgram') DEFAULT NULL COMMENT '平台:H5=H5,wxOfficialAccount=微信公众号,wxMiniProgram=微信小程序,App=App',
     *   `createtime` int(11) DEFAULT NULL COMMENT '创建时间',
     *   `updatetime` int(11) DEFAULT NULL COMMENT '更新时间',
     *   `deletetime` int(11) DEFAULT NULL COMMENT '删除时间',
     *   `profit_sharing` enum('N','Y') NOT NULL DEFAULT 'N' COMMENT '分账:N=否,Y=是',
     *   `profit_sharing_account` varchar(25) NOT NULL DEFAULT '' COMMENT '分账账户',
     *   `profit_sharing_name` varchar(125) NOT NULL DEFAULT '' COMMENT '分账账户名称',
     *   `profit_sharing_amount` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '分账金额',
     *   `out_order_no` varchar(64) NOT NULL DEFAULT '' COMMENT '分账单号',
     *   `audit_status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '订单审核:0=待审核,1=已审核',
     *   `is_get_coupon` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否参与 福利券活动，1是（默认0）',
     *   PRIMARY KEY (`id`) USING BTREE,
     *   UNIQUE KEY `jw_shopro_order_order_sn_uindex` (`order_sn`) USING BTREE,
     *   KEY `index_user_id` (`user_id`) USING BTREE,
     *   KEY `index_status` (`status`) USING BTREE
     * ) ENGINE=InnoDB AUTO_INCREMENT=135674 DEFAULT CHARSET=utf8mb4 COMMENT='订单管理'
     */

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Long getPaytime() {
        return paytime;
    }

    public void setPaytime(Long paytime) {
        this.paytime = paytime;
    }

    public Long getDeletetime() {
        return deletetime;
    }

    public void setDeletetime(Long deletetime) {
        this.deletetime = deletetime;
    }

    public String getOfflineVerify() {
        return offlineVerify;
    }

    public void setOfflineVerify(String offlineVerify) {
        this.offlineVerify = offlineVerify;
    }

    public Integer getCanVerifyCount() {
        return canVerifyCount;
    }

    public void setCanVerifyCount(Integer canVerifyCount) {
        this.canVerifyCount = canVerifyCount;
    }

    public Integer getHasVerifyCount() {
        return hasVerifyCount;
    }

    public void setHasVerifyCount(Integer hasVerifyCount) {
        this.hasVerifyCount = hasVerifyCount;
    }

    public Integer getTakenewVerifyCount() {
        return takenewVerifyCount;
    }

    public void setTakenewVerifyCount(Integer takenewVerifyCount) {
        this.takenewVerifyCount = takenewVerifyCount;
    }

    public Integer getTakenewHasVerifyCount() {
        return takenewHasVerifyCount;
    }

    public void setTakenewHasVerifyCount(Integer takenewHasVerifyCount) {
        this.takenewHasVerifyCount = takenewHasVerifyCount;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }
}
